//
//  GamePadViewController.h
//  GravityControl
//
//  Created by Javier Quevedo on 01/07/2009.
//  Copyright 2009 VRIJE. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kTotalShieldTime 2.0
#define kShieldTimeIntervals 20.0
#define kShieldGrowRatio 0.25
#define kNetUpdateFrequency 10.0 // Number of times per second that the controller status will be sent through the network

@class GravityAgent;
@class ConnectionManager;

@interface GamePadViewController : UIViewController {
	IBOutlet UISlider * shieldView;
	NSLock *lock;
	BOOL	isShieldTouchedDown;
	float shieldStatus;
	float currentBomb;
	GravityAgent *gravityAgent;
	ConnectionManager *connectionManager;
}

@property(nonatomic, retain) IBOutlet UISlider * shieldView;
@property(nonatomic, retain) NSLock *lock;
@property(nonatomic) BOOL isShieldTouchedDown;
- (IBAction) shieldTouchDown: (id) sender;
- (IBAction) shieldTouchUp: (id) sender;
- (IBAction) bombTouchUpInside: (id) sender;

@end
